combobox: remove unneeded check
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 22 Dec 2015 01:47:44 +0000 (17:47 -0800)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 22 Dec 2015 17:29:43 +0000 (09:29 -0800)
The combobox always has a window.

gtk/gtkcombobox.c

index fd751a2afc1b0c1ece7f80059c3f7f935b9d79e8..487e9b751119d6755b18bef10904c412bac8a579 100644 (file)
@@ -1930,13 +1930,6 @@ gtk_combo_box_list_position (GtkComboBox *combo_box,
   *x = *y = 0;
 
   gtk_widget_get_allocation (widget, &allocation);
-
-  if (!gtk_widget_get_has_window (widget))
-    {
-      *x += allocation.x;
-      *y += allocation.y;
-    }
-
   window = gtk_widget_get_window (widget);
 
   gdk_window_get_root_coords (gtk_widget_get_window (widget),